package com.wendy.entity;

import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * Description:
 * date: 2022/3/8 10:53
 *
 * @author Wendy
 * @since JDK 1.8
 */
@Data
@Builder
public class Menu {
  private Integer id;
  private String name;
  private Integer parentId;
  private List<Menu> childrenList;

  public Menu(Integer id, String name, Integer parentId) {
    this.id = id;
    this.name = name;
    this.parentId = parentId;
  }

  public Menu(Integer id, String name, Integer parentId, List<Menu> childrenList) {
    this.id = id;
    this.name = name;
    this.parentId = parentId;
    this.childrenList = childrenList;
  }
}
